﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;

namespace DataAccess
{
    public class Tbl_ClassBus
    {
        LinqUtility<tbl_class> context = new LinqUtility<tbl_class>();

        public List<tbl_class> getListClass()
        {
            return context.GetAll();
        }

        public void insertClass(tbl_class tc)
        {
            context.Insert(tc);
        }

        public void updateClass(tbl_class tc)
        {
            context.Update(tc);
        }

        public void delete(tbl_class tc)
        {
            context.Delete(tc);
        }
    }
}
